{% extends "common/default.html" %}
{% block common %}
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">个人信息</h3>
        </div>
        <div class="panel-body">
            <form class="form-horizontal" role="form" method="post" action="../update">
                {%  if  success %}
                    <label style="background-color: #3e8f3e">{{ success }}</label>
                    {% elif erro %}
                    <label style="background-color: red">{{ success }}</label>
                {% endif %}
                <div class="form-group">
                    <label class="col-md-2 control-label">用户名：</label>
                    <div class="col-md-10">
                        <input type="text" class="form-control" id="userName" name="userName" style="width: 300px;"
                               value="{{ user.userName }}" readonly="readonly">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">密码：</label>
                    <div class="col-md-10">
                        <input type="text" class="form-control" id="password" name="password" style="width: 300px;"
                               value="{{ user.password }}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">真实姓名：</label>
                    <div class="col-md-10">
                        <input type="text" class="form-control" id="trueName" name="trueName" style="width: 300px;"
                               value="{{ user.trueName }}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">职称：</label>
                    <div class="col-md-10">
                        <input type="text" class="form-control" id="title" name="title" style="width: 300px;"
                               value="{{ user.title }}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="hidden" id="id" name="id" value="${teacher.id }"/>
                        <button type="submit" class="btn btn-primary">保存</button>&nbsp;&nbsp;
                        <font color="red" id="error"></font>
                    </div>
                </div>
            </form>
        </div>
    </div>
{% endblock %}

